#!/bin/bash
# filename: ddoctype
# description: create doctype

#     Copyright © 2012-2013 Toan Nguyen <toan.nguyen@monash.edu>
#
#     This file is part of Xglom.
# 
#     This is free software: you can redistribute it and/or modify
#     it under the terms of the GNU General Public License as published by
#     the Free Software Foundation, either version 3 of the License, or
#     (at your option) any later version.
# 
#     This is distributed in the hope that it will be useful,
#     but WITHOUT ANY WARRANTY; without even the implied warranty of
#     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#     GNU General Public License for more details.
# 
#     You should have received a copy of the GNU General Public License
#     along with this program.  If not, see <http://www.gnu.org/licenses/>.

. dcheck

method=":namespace pssd/methods  \
	    :name Multi-modal Kidney Project \
	    :description Imaging acquisitions of kidneys utilising multiple modes including High-field MR, Synchrotron X-ray CT, and optical microscope. \
	    :subject < \
	    	:project < \
			    :public < \
				    :metadata < :definition -requirement mandatory hfi.pssd.subject :value < :type constant(animal) > > \
		 		    :metadata < :definition -requirement mandatory hfi.pssd.identity > \
		 		    :metadata < :definition -requirement mandatory hfi.pssd.subject > \
					:metadata < :definition -requirement mandatory hfi.pssd.animal.subject > \
		 		    :metadata < :definition -requirement mandatory hfi.pssd.animal.disease > \
				    :metadata < :definition -requirement mandatory mbi.animal.species > \
		 		    :metadata < :definition -requirement mandatory mbi.kidney.preparation > \
			     > \
	   	     > \
	    > \
	    :step < \
		    :name MR aquisition :description MR image aquisition from Agilent 9.4T MR :study < :type Magnetic Resonance Imaging :dicom < :modality MR > > :subject < :metadata < :definition -requirement optional mbi.kidney.preparation > > \
	    >"

#echo ${doctype}
$MFCOMMAND om.pssd.method.for.subject.update ${method}
